package com.steel.yfmall.cloud.assistant.controller;

import com.steel.yfmall.cloud.assistant.api.stock.ZgFrameworkContractInfoService;
import com.steel.yfmall.cloud.components.utils.base.APIMsgBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author jia chang bao
 * @date 2020/12/21 21:43
 */
@RestController
@Slf4j
public class ZgFrameworkContractInfoContoller {

    /**
     * 框架合同数据 推送给中冠
     *
     * @param object 数据
     * @return 结果
     * @author jia chang bao
     */
    @RequestMapping("/sendZgSo")
    public APIMsgBean<String> sendZgSo(@RequestBody Object object) {
        return zgFrameworkContractInfoService.sendZgSo(object);
    }

    /**
     * 变更合同信息
     *
     * @param object 数据
     * @return 结果
     * @author jia chang bao
     */
    @RequestMapping("/sendZgSoChangeContract")
    public APIMsgBean<String> sendZgSoChangeContract(@RequestBody Object object){
        return zgFrameworkContractInfoService.sendZgSoChangeContract(object);
    }

    @Resource
    private ZgFrameworkContractInfoService zgFrameworkContractInfoService;
}
